package com.dingwen.stu.spr.advice;

import org.springframework.aop.MethodBeforeAdvice;

import java.lang.reflect.Method;

/**
 * 前置通知测试
 *
 * @author dingwen
 * @date 2021/10/07
 */
public class BeforeTest implements MethodBeforeAdvice {
    @Override
    public void before(Method method, Object[] objects, Object target) throws Throwable {
        System.out.println("前置通知在"+target.getClass().getName()+ "的"+ method.getName()+ "之前执行");
    }
}
